-- GENERATED SPELL FOR [Winter Wolf] --


function spell0_1131(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1131', 548, 1)
end

function spell1_1131(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1131', 0, 1)
end

function spell2_1131(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_1131', 20000, 1)
end

function spell3_1131(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1131', 0, 1)
end

function Sorts_1131(pUnit, Event)
local choix_sorts_1131 = math.random(0, 3)
if choix_sorts_1131 == 0 then
pUnit:RegisterEvent('spell0_1131', 1, 1)
end
if choix_sorts_1131 == 1 then
pUnit:RegisterEvent('spell1_1131', 1, 1)
end
if choix_sorts_1131 == 2 then
pUnit:RegisterEvent('spell2_1131', 1, 1)
end
if choix_sorts_1131 == 3 then
pUnit:RegisterEvent('spell3_1131', 1, 1)
end
end

function mob1131_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1131', math.random(1500, 3000), 1)
end

function mob1131_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1131_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1131_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1131, 1, 'mob1131_Action')
RegisterUnitEvent(1131, 2, 'mob1131_Leave')
RegisterUnitEvent(1131, 3, 'mob1131_Kill')
RegisterUnitEvent(1131, 4, 'mob1131_Die')
